package com.lvy.hczn.front.system.domain.business;

import com.baomidou.mybatisplus.annotation.TableName;
import com.lvy.hczn.front.common.core.domain.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 门禁
 *
 * @author yw
 * @date 2022-03-24 11:24:40
 **/
@Data
@TableName("access_manager")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "门禁访问管理")
public class AccessManager extends BaseModel<AccessManager> {

    @ApiModelProperty(value = "门禁识别码")
    private String accessCode;

    @ApiModelProperty(value = "来源单号")
    private String sourceCode;

    @ApiModelProperty(value = "类型：1：分拣、2：配送单(发货配送)；3、运输单；4：货箱租赁；5：配送单（退货配送，拒收配送）；6、供应商自配到仓库，7：销售配送(配送员入仓通知)，8：货箱领取")
    private Integer type;

    @ApiModelProperty(value = "门禁识别码生成的二维码图片")
    private String imgUrl;

    @ApiModelProperty(value = "第一次入门扫码时间（个N个小时后失效）")
    private LocalDateTime scanTime;

    @ApiModelProperty(value = "扫码次数（运输单/配送单扫过码后，后认为入库货物送达）")
    private int countScan;
}
